package sk.fiit.vppj.eventmanager.gui.administrator;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;

import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
/**
 * Main graphic class for administrator view
 * @author Marek
 *
 */
public final class AdministratorView extends JPanel {

	public AdministratorView() {
		setLayout( new GridLayout( 1, 1 ) );
		setMinimumSize( new Dimension( 900, 540 ) );
		JTabbedPane tabbedPane = new JTabbedPane();

		JComponent panel1 = new AdminGeneralPanel();
		tabbedPane.addTab( "General", panel1 );
		tabbedPane.setMnemonicAt( 0, KeyEvent.VK_1 );
	
		JComponent panel2 = new AdminProjectsPanel();
		tabbedPane.addTab( "Projects", panel2 );
		tabbedPane.setMnemonicAt( 1, KeyEvent.VK_2 );

		//TODO make implementations of these classes
//		JComponent panel3 = new AdminFinancesPanel();
//		tabbedPane.addTab( "Finances", panel3 );
//		tabbedPane.setMnemonicAt( 2, KeyEvent.VK_3 );
//		
//		JComponent panel4 = new AdminActivitiesPanel();
//		tabbedPane.addTab( "Activities", panel4 );
//		tabbedPane.setMnemonicAt( 3, KeyEvent.VK_4 );
		
		JComponent panel5 = new AdminStatsPanel();
		tabbedPane.addTab( "Statistics", panel5 );
		tabbedPane.setMnemonicAt( 2, KeyEvent.VK_5 );

		add( tabbedPane );

	}
}
